'use strict';

module.exports = app => {
  const { DATE, BIGINT } = app.Sequelize;

  const OutfitMid = app.model.define('outfit_goods_link', {
    id: { type: BIGINT, primaryKey: true, autoIncrement: true },
    outfit_id: {
      type: BIGINT,
      allowNull: false,
    },
    product_id: {
      type: BIGINT,
      allowNull: false,
    },
    created_at: DATE,
    updated_at: DATE,
  }, {
    tableName: 't_outfit_goods_link',
  });

  return OutfitMid;
};
